|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jme3.app.state.AbstractAppState
ga.view.appstate.RootNodeState
ga.view.appstate.SceneState
ga.view.aerial.AerialEvaluationState<T>
T - The generic type of the individuals.public class AerialEvaluationState<T extends IIndividual<T>>
This interactive evaluator provides an aerial view on the show room. There are also 5 buttons for assigning fitness.
| Nested Class Summary | |
|---|---|
private class |
AerialEvaluationState.ViewSwitchListener
Keyboard listener to switch the perspective. |
| Field Summary | |
|---|---|
private ISIGA<T> |
algorithm
|
private com.jme3.app.Application |
app
|
private CameraSettings |
camSettings
|
private CamDragListener |
dragListener
|
private T |
individual
|
private java.util.List<EvaluationListener<T>> |
listeners
|
private static java.util.logging.Logger |
LOGGER
|
private MenuListener |
menuListener
|
private IPhenotypeGenerator<T,? extends com.jme3.scene.Spatial> |
phenotypeGenerator
|
private com.jme3.system.AppSettings |
settings
|
private ShowRoomFactory |
showRoomFactory
|
private AerialUIState<T> |
uiState
|
| Fields inherited from class ga.view.appstate.SceneState |
|---|
assetManager, cam, inputManager, renderManager, stateManager, timer, viewPort |
| Fields inherited from class ga.view.appstate.RootNodeState |
|---|
rootNode |
| Fields inherited from class com.jme3.app.state.AbstractAppState |
|---|
initialized |
| Constructor Summary | |
|---|---|
AerialEvaluationState(IPhenotypeGenerator<T,? extends com.jme3.scene.Spatial> phenotypeGenerator)
Creates a new aerial evaluation state. |
|
| Method Summary | |
|---|---|
void |
addEvaluationListener(EvaluationListener<T> listener)
Adds an EvaluationListener that will be notified about the
evaluation state. |
void |
cleanup()
|
void |
evaluate(T individual)
Evaluates the given individual. |
void |
fireIndividualEvaluated(T individual)
Notification method that causes all EvaluationListeners being
notified that the evaluator has evaluated the individual. |
void |
fireNewIndividualRequested()
Notification method that causes all EvaluationListeners being
notified that the evaluator demands a new individual for evaluation. |
ISIGA<T> |
getAlgorithm()
Getter for the interactive genetic algorithm. |
CamDragListener |
getDragListener()
Gets the drag listener. |
private void |
initCam()
Configures the camera. |
void |
initialize(com.jme3.app.state.AppStateManager stateManager,
com.jme3.app.Application app)
|
void |
removeEvaluationListener(EvaluationListener<T> listener)
Adds an EvaluationListener. |
void |
setAlgorithm(ISIGA<T> algorithm)
Sets the interactive genetic algorithm. |
void |
setEnabled(boolean enabled)
|
void |
setMenuListener(MenuListener menuListener)
Sets the menu listener. |
| Methods inherited from class ga.view.appstate.SceneState |
|---|
finalCleanUp, getCamera |
| Methods inherited from class ga.view.appstate.RootNodeState |
|---|
getRootNode, update |
| Methods inherited from class com.jme3.app.state.AbstractAppState |
|---|
isEnabled, isInitialized, postRender, render, stateAttached, stateDetached |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final java.util.logging.Logger LOGGER
private final IPhenotypeGenerator<T extends IIndividual<T>,? extends com.jme3.scene.Spatial> phenotypeGenerator
private ShowRoomFactory showRoomFactory
private AerialUIState<T extends IIndividual<T>> uiState
private final java.util.List<EvaluationListener<T extends IIndividual<T>>> listeners
private CameraSettings camSettings
private MenuListener menuListener
private com.jme3.system.AppSettings settings
private CamDragListener dragListener
private ISIGA<T extends IIndividual<T>> algorithm
private T extends IIndividual<T> individual
private com.jme3.app.Application app
| Constructor Detail |
|---|
public AerialEvaluationState(IPhenotypeGenerator<T,? extends com.jme3.scene.Spatial> phenotypeGenerator)
phenotypeGenerator - The phenotype generator.| Method Detail |
|---|
public void setMenuListener(MenuListener menuListener)
IMenuListenerParent
setMenuListener in interface IMenuListenerParentmenuListener - the new menu listener
public void initialize(com.jme3.app.state.AppStateManager stateManager,
com.jme3.app.Application app)
initialize in interface com.jme3.app.state.AppStateinitialize in class SceneStatepublic void cleanup()
cleanup in interface com.jme3.app.state.AppStatecleanup in class RootNodeStatepublic void setEnabled(boolean enabled)
setEnabled in interface com.jme3.app.state.AppStatesetEnabled in class SceneStateprivate void initCam()
public void setAlgorithm(ISIGA<T> algorithm)
IInteractiveFitnessEvaluator
setAlgorithm in interface IInteractiveFitnessEvaluator<T extends IIndividual<T>>algorithm - The SIGA.public ISIGA<T> getAlgorithm()
IInteractiveFitnessEvaluator
getAlgorithm in interface IInteractiveFitnessEvaluator<T extends IIndividual<T>>public void evaluate(T individual)
IFitnessEvaluator
evaluate in interface IFitnessEvaluator<T extends IIndividual<T>>evaluate in interface IInteractiveFitnessEvaluator<T extends IIndividual<T>>individual - Individual to evaluate.public void fireNewIndividualRequested()
IInteractiveFitnessEvaluatorEvaluationListeners being
notified that the evaluator demands a new individual for evaluation.
fireNewIndividualRequested in interface IInteractiveFitnessEvaluator<T extends IIndividual<T>>public void fireIndividualEvaluated(T individual)
IInteractiveFitnessEvaluatorEvaluationListeners being
notified that the evaluator has evaluated the individual.
fireIndividualEvaluated in interface IInteractiveFitnessEvaluator<T extends IIndividual<T>>individual - The evaluated individual.public void addEvaluationListener(EvaluationListener<T> listener)
IInteractiveFitnessEvaluatorEvaluationListener that will be notified about the
evaluation state.
addEvaluationListener in interface IInteractiveFitnessEvaluator<T extends IIndividual<T>>listener - The listener.public void removeEvaluationListener(EvaluationListener<T> listener)
IInteractiveFitnessEvaluatorEvaluationListener.
removeEvaluationListener in interface IInteractiveFitnessEvaluator<T extends IIndividual<T>>listener - The listener.public CamDragListener getDragListener()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||